Skip to content

Use appropriate check result value when determined not relevant #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 14, 2020

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Dec 12, 2020

There are various extents to which a check can be run:

  1. Skipped due to check configuration (e.g., check is configured to run for libraries but the project is a sketch).
  2. Not run due to a problem not directly related to the check (e.g., invalid library.properties data format).
  3. Skipped because the check function determined it was not applicable (e.g., formating check on undefined optional library.properties field).
  4. Run.

Each has an associated check result value: Skip, NotRun, Pass/Fail.

Previously, the "NotRun" result was used for both (2) and (3), but "Skip" is much more appropriate for (3) because this
is a situation where there was no reason to run the check, whereas "NotRun" indicates that the check should have been
run, but couldn't.

There are various extents to which a check can be run:

1. Skipped due to check configuration (e.g., check is configured to run for libraries but the project is a sketch).
2. Not run due to a problem not directly related to the check (e.g., invalid library.properties data format).
3. Skipped because the check function determined it was not applicable (e.g., formating check on undefined optional library.properties field).
4. Run.

Each has an associated check result value: Skip, NotRun, Pass/Fail.

Previously, the "NotRun" result was used for both (2) and (3), but "Skip" is much more appropriate for (3) because this
is a situation where there was no reason to run the check, whereas "NotRun" indicates that the check should have been
run, but couldn't.
@per1234 per1234 force-pushed the per1234/check-functions-skip branch from d218245 to 401f029 Compare December 14, 2020 14:24
@per1234 per1234 merged commit b67f86c into main Dec 14, 2020
@per1234 per1234 deleted the per1234/check-functions-skip branch December 14, 2020 14:28
@per1234 per1234 added topic: code Related to content of the project itself type: enhancement Proposed improvement labels Sep 29, 2021
@per1234 per1234 self-assigned this Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants